package cn.com.oceansoft.nos.common;

import java.io.UnsupportedEncodingException;
import java.security.NoSuchAlgorithmException;
import java.util.Date;

/**
 * 短信公共平台webservice接口
 * 
 * @author Crystal
 * 
 */
public interface ISMSService {

	/**
	 * 发送短信
	 * @param businesspk
	 * @param appId
	 * @param moduleId
	 * @param type
	 * @param receiveNos
	 * @param message
	 * @return
	 * @throws NoSuchAlgorithmException
	 * @throws UnsupportedEncodingException
	 * @throws Exception
	 */
	public int sendMessage(String businesspk, String appId, String moduleId,
						   String type, String receiveNos, String message)
			throws NoSuchAlgorithmException, UnsupportedEncodingException,
			Exception;

	/**
	 * 接收短信
	 * @param appId
	 * @param moduleId
	 * @param startDate
	 * @param endDate
	 * @return
	 * @throws NoSuchAlgorithmException
	 * @throws UnsupportedEncodingException
	 * @throws Exception
	 */
	public String receiveMessage(String appId, String moduleId, Date startDate,
								 Date endDate) throws NoSuchAlgorithmException,
			UnsupportedEncodingException, Exception;

}
